package com.dems.dao.mapper.la;

import com.dems.dao.dataobject.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper {
    int deleteByPrimaryKey(Dept record);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Dept record);

    int updateByPrimaryKey(Dept record);

    /**
     * 查询机构列表
     * @param superId
     */
    List<Dept> selectList(@Param("superId") Long superId);

    /**
     * 根据部门名称搜索
     * @param deptName
     * @return
     */
    Dept selectByDeptName(@Param("deptName") String deptName);

    List<Dept> selectByIdList(@Param("idList") List<Long> idList);

    List<Dept> selectBySupervisor(@Param("supervisorIdList") List<String> supervisorIdList);

    List<Dept> selectBySuperId(@Param("superIdList") List<Long> superIdList);

    List<String> selectAllSupUser();

    Dept selectByGid(String gid);
}